/*
 * Copyright © 2021 Dowsure
 * https://www.dowsure.com/
 *
 * All rights reserved.
 */

package com.dowsure.apisaas.enums;

/**
 * @description: 站点
 * @author: Dowsure
 **/
public enum MarketplaceEnums {

    CA("CA", "加拿大"),
    US("US", "美国"),
    MX("MX", "墨西哥"),
    BR("BR", "巴西"),
    ES("ES", "西班牙"),
    GB("GB", "大不列颠联合王国"),
    FR("FR", "法国"),
    NL("NL", "荷兰"),
    DE("DE", "德国"),
    IT("IT", "意大利"),
    SE("SE", "瑞典"),
    PL("PL", "波兰"),
    EG("EG", "埃及"),
    TR("TR", "土耳其"),
    AE("AE", "阿拉伯联合酋长国"),
    IN("IN", "印度"),
    SG("SG", "新加坡"),
    AU("AU", "澳大利亚"),
    JP("JP", "日本")
    ;

    private String value;

    private String describe;

    MarketplaceEnums(String value, String describe){
        this.value = value;
        this.describe = describe;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    public static MarketplaceEnums fromValue(String text) {
        for (MarketplaceEnums b : MarketplaceEnums.values()) {
            if (String.valueOf(b.value).equals(text)) {
                return b;
            }
        }
        return null;
    }
}
